package com.jingbian.cppccbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author yezi
 * @since 2025-02-14
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@TableName("activities")
public class Activities implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;

    private String aname;

    private String location;

    private Integer number;

    private String introduction;

    private String imagePath1;

    private String imagePath2;

    private String imagePath3;

    private String imagePath4;
    @JsonFormat(pattern = "yyyy-MM-dd-hh-mm")
    private LocalDateTime startTime;
    @JsonFormat(pattern = "yyyy-MM-dd-hh-mm")
    private LocalDateTime endTime;
    @JsonFormat(pattern = "yyyy-MM-dd-hh-mm")
    private LocalDateTime submissionTime;

    private String status;

    private Integer userId;

    @JsonFormat(pattern = "yyyy-MM-dd-hh-mm")
    private LocalDateTime createdAt;

    private String uname;
    private String phone;

    private String timeStatus;
}
